package org.chen.spring.core.factory;

/**
 * Bean信息
 *
 * @author Chen
 * @since 2023/6/1 14:59
 */
public class BeanDefinition {

    /**
     * Bean的类型
     */
    private Class<?> type;

    /**
     * Bean是单例还是多例
     */
    private String scope;

    public BeanDefinition() {

    }

    public BeanDefinition(Class<?> aClass, String singleton) {
        this.type = aClass;
        this.scope = singleton;
    }

    public Class<?> getType() {
        return type;
    }

    public void setType(Class<?> type) {
        this.type = type;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }
}
